"""
成绩管理模块 - URL配置
"""
from django.urls import path, include
from rest_framework.routers import DefaultRouter

from . import views

# 创建路由器并注册视图集
router = DefaultRouter()
router.register(r'standards', views.GradingStandardViewSet, basename='grading-standard')
router.register(r'grade-sheets', views.GradeSheetViewSet, basename='grade-sheet')
router.register(r'grades', views.GradeViewSet, basename='grade')
router.register(r'appeals', views.GradeAppealViewSet, basename='grade-appeal')
router.register(r'statistics', views.GradeStatisticsViewSet, basename='grade-statistics')

app_name = 'grading'

urlpatterns = [
    # 包含路由器生成的URL
    path('', include(router.urls)),
]
